package cc.taofoo.abstractFactory;

import cc.taofoo.utils.XMLUtils;

/**
 * EFactory 为抽象工厂类
 * 产品等级分为 Phone 以及 TV
 * 产品族为 Huawei 及 MI
 */

public class Main {
    public static void main(String[] args) {
        EFactory factory = (EFactory) XMLUtils.getBeanFromXml("ab-factory");
        factory.getTV().run();
        factory.getPhone().run();
    }
}
